<template>
  <div class="header-room">
    <transition name="header">
      <slot>
        <h2>这里是头部</h2>
      </slot>
    </transition>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        visible: false
      }
    },
    methods: {
      initHeader() {
      }
    },
    mounted() {
      this.initHeader()
    }
  }
</script>
